package com.ruoyi.ebike.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计费规则对象 billing_rules
 * 
 * @author ruoyi
 * @date 2025-01-02
 */
public class BillingRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计费规则id */
    private Long ruleId;

    /** 绑定的区域id */
    @Excel(name = "绑定的区域id")
    private Long areaId;

    /** 计费规则名称 */
    @Excel(name = "计费规则名称")
    private String ruleName;

    /** 该规则生效的最小里程（公里） */
    @Excel(name = "该规则生效的最小里程", readConverterExp = "公=里")
    private BigDecimal minDistance;

    /** 该规则生效的最大里程（公里），NULL 表示无上限 */
    @Excel(name = "该规则生效的最大里程", readConverterExp = "公=里")
    private BigDecimal maxDistance;

    /** 每公里收取费用 */
    @Excel(name = "每公里收取费用")
    private BigDecimal ratePerKilometer;

    /** 基础费用 */
    @Excel(name = "基础费用")
    private BigDecimal baseFee;

    /** 规则生效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "规则生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ruleEffectiveDate;

    /** 规则失效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "规则失效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ruleExpiryDate;

    /** 有效标识 */
    @Excel(name = "有效标识")
    private String activeFlag;

    /** 所属部门 */
    private Long deptId;

    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }
    public void setMinDistance(BigDecimal minDistance) 
    {
        this.minDistance = minDistance;
    }

    public BigDecimal getMinDistance() 
    {
        return minDistance;
    }
    public void setMaxDistance(BigDecimal maxDistance) 
    {
        this.maxDistance = maxDistance;
    }

    public BigDecimal getMaxDistance() 
    {
        return maxDistance;
    }
    public void setRatePerKilometer(BigDecimal ratePerKilometer) 
    {
        this.ratePerKilometer = ratePerKilometer;
    }

    public BigDecimal getRatePerKilometer() 
    {
        return ratePerKilometer;
    }
    public void setBaseFee(BigDecimal baseFee) 
    {
        this.baseFee = baseFee;
    }

    public BigDecimal getBaseFee() 
    {
        return baseFee;
    }
    public void setRuleEffectiveDate(Date ruleEffectiveDate) 
    {
        this.ruleEffectiveDate = ruleEffectiveDate;
    }

    public Date getRuleEffectiveDate() 
    {
        return ruleEffectiveDate;
    }
    public void setRuleExpiryDate(Date ruleExpiryDate) 
    {
        this.ruleExpiryDate = ruleExpiryDate;
    }

    public Date getRuleExpiryDate() 
    {
        return ruleExpiryDate;
    }
    public void setActiveFlag(String activeFlag) 
    {
        this.activeFlag = activeFlag;
    }

    public String getActiveFlag() 
    {
        return activeFlag;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ruleId", getRuleId())
            .append("areaId", getAreaId())
            .append("ruleName", getRuleName())
            .append("minDistance", getMinDistance())
            .append("maxDistance", getMaxDistance())
            .append("ratePerKilometer", getRatePerKilometer())
            .append("baseFee", getBaseFee())
            .append("ruleEffectiveDate", getRuleEffectiveDate())
            .append("ruleExpiryDate", getRuleExpiryDate())
            .append("activeFlag", getActiveFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deptId", getDeptId())
            .toString();
    }
}
